package org.springblade.modules.restaurant.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author harry
 * @公众号 Harry技术
 */
@Data
@Schema(description = "采购树")
public class PurchaseCategoryTreeVO {
	/**
	 * 采购类别ID
	 */
	@Schema(description = "采购类别ID")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long categoryId;
	/**
	 * 类别名
	 */
	@Schema(description = "类别名")
	private String categoryName;

	/**
     * 采购商品明细
     */
	@Schema(description = "children")
	List<PurchaseCommodityTreeVO> children;
}
